package x.ovo.wechat.bot.common.command;

import x.ovo.wechat.bot.common.Manager;
import x.ovo.wechat.bot.common.entity.message.TextMessage;

/**
 * 命令管理器
 *
 * @author ovo, created by 2024/05/02
 */
public interface CommandManager extends Manager {
    /**
     * 注册
     *
     * @param command 命令
     */
    void register(String command, CommandExecutor executor);

    /**
     * 取消注册
     *
     * @param command 命令
     */
    void unregister(String command);

    void execute(TextMessage message);
}
